package com.fin.quant.app.vo;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 创建投资组合请求参数
 */
@Data
public class CreatePortfolioRequest {
    @NotBlank(message = "组合名称不能为空")
    private String portfolioName;

    private String description;

    @NotBlank(message = "组合类型不能为空")
    private String portfolioType; // 'STOCK' | 'FUND' | 'MIXED' | 'FUTURES'

    private String riskLevel; // 'LOW' | 'MEDIUM' | 'HIGH'

    @NotNull(message = "初始资本不能为空")
    @Positive(message = "初始资本必须大于0")
    private Double initialCapital;
}
